@extends('layout.main')
@section('css')
<link rel="stylesheet" type="text/css" href="/static/css/wangEditor.min.css">
@endsection
@section('content')
    <div class="col-sm-8 blog-main">
        <form action="/posts" method="POST">
           {{csrf_field()}}
            <div class="form-group">
                <label>标题</label>
                <input name="title" type="text" class="form-control" placeholder="这里是标题">
            </div>
            <div class="form-group">
                <label>内容</label>
                <textarea id="content"  style="height:400px;max-height:500px;" name="content" class="form-control" placeholder="这里是内容"></textarea>
            </div>
            @include('layout.error')
            <button type="submit" class="btn btn-default">提交</button>
        </form>
    </div>
@endsection
@section('js')
    <script type="text/javascript" src="/static/js/wangEditor.min.js"></script>
    <script src="/static/js/ylaravel.js"></script>
@endsection